package com.wang.designpattern.factory.absfactory.store;

import com.wang.designpattern.factory.absfactory.pizza.LDCheesePizza;
import com.wang.designpattern.factory.absfactory.pizza.LDGreekPizza;
import com.wang.designpattern.factory.absfactory.pizza.LDPepperPizza;
import com.wang.designpattern.factory.absfactory.pizza.Pizza;
import com.wang.designpattern.factory.absfactory.tea.LDTea;
import com.wang.designpattern.factory.absfactory.tea.Tea;

public class LDFactory implements AbsFactory {
    @Override
    public Pizza createPizza() {
        Pizza pizza = new LDCheesePizza();
        /*if (orderType.equals("cheese")) {
            pizza = new LDCheesePizza();
        } else if (orderType.equals("pepper")) {
            pizza = new LDPepperPizza();
        } else if (orderType.equals("greek")) {
            pizza = new LDGreekPizza();
        }*/
        return pizza;
    }

    @Override
    public Tea getTea() {
        return new LDTea();
    }
}
